-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: update text input logic to v2 TextFieldState, part 1 [WPB-8779] #3010
Conversation
Test Results930 tests - 2 930 ✅ - 2 9m 17s ⏱️ - 1m 54s Results for commit e43d818. ± Comparison against base commit 2b4b52e. This pull request removes 2 tests.
♻️ This comment has been updated with latest results. |
APKs built during tests are available here. Scroll down to Artifacts! |
Build 4764 succeeded. The build produced the following APK's: |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3010 +/- ##
===========================================
+ Coverage 44.20% 44.29% +0.09%
===========================================
Files 447 448 +1
Lines 14558 14508 -50
Branches 2497 2490 -7
===========================================
- Hits 6435 6426 -9
+ Misses 7428 7380 -48
- Partials 695 702 +7
... and 3 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing work!
got just 2 comments for the returned error type and checking
.../kotlin/com/wire/android/ui/authentication/create/username/CreateAccountUsernameViewModel.kt
Show resolved
Hide resolved
...n/kotlin/com/wire/android/ui/home/settings/account/displayname/ChangeDisplayNameViewModel.kt
Show resolved
Hide resolved
…-v2-textfieldstate-pt1
APKs built during tests are available here. Scroll down to Artifacts! |
APKs built during tests are available here. Scroll down to Artifacts! |
Build 4827 succeeded. The build produced the following APK's: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👌
Just one thing: we are using an alpha version of compose-foundation
and compose-material-android
, I'd suggest to upgrade it to latest version 1.7.0-beta01
…ndroid to newest beta
…-v2-textfieldstate-pt1 # Conflicts: # app/src/main/kotlin/com/wire/android/ui/common/textfield/WirePasswordTextField.kt
Ups 🫰🟨This PR is too big. Please try to break it up into smaller PRs. |
Quality Gate passedIssues Measures |
APKs built during tests are available here. Scroll down to Artifacts! |
Build 4888 succeeded. The build produced the following APK's: |
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Android Compose has new v2 version of text field inputs, and with that, they are going away from the previous approach with
TextFieldValue
andonValueChanged
and replacing it withTextFieldState
.We already updated text fields to v2 but still are using "hybrid" solution which synchronises between
TextFieldValue/onValueChanged
andTextFieldState
.In this PR, following screens, their ViewModels logic and tests are updated to use
TextFieldState
:Also,
ShakeAnimation
is fixed/updated,translationX
ingraphicsLayer
is used instead ofoffset
to make it lighter and smoother.Testing
Test Coverage (Optional)
How to Test
Use text fields from any of listed screens.
PR Post Submission Checklist for internal contributors (Optional)
PR Post Merge Checklist for internal contributors
References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764
.